-- GENERATED SPELL FOR [Injured Mammoth] --


function spell0_26711(pUnit, Event) --@Trample,n/a--
pUnit:FullCastSpellOnTarget(51944,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26711', 638, 1)
end

function Sorts_26711(pUnit, Event)
local choix_sorts_26711 = math.random(0, 0)
if choix_sorts_26711 == 0 then
pUnit:RegisterEvent('spell0_26711', 1, 1)
end
end

function mob26711_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26711', math.random(1500, 3000), 1)
end

function mob26711_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26711_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26711_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26711, 1, 'mob26711_Action')
RegisterUnitEvent(26711, 2, 'mob26711_Leave')
RegisterUnitEvent(26711, 3, 'mob26711_Kill')
RegisterUnitEvent(26711, 4, 'mob26711_Die')
